<!--
 * @Descripttion:
 * @Author: caijj
 * @Date: 2020-12-16 08:41:41
 * @LastEditors: caijj
 * @LastEditTime: 2020-12-28 14:09:32
-->
<template>
  <BasicLayout>
    <template #wrapper>
      <search-form
        :is-date-switch="true"
        :report-type="reportType"
        :is-brand="true"
        :is-export="false"
        @submit="onSearchLineChart"
      />
      <e-charts
        ref="chartParent"
        :chart-data="chartData"
        :line-chart-data="lineChartData"
        :split-line-chart-data="splitLineChartData"
      />
    </template>
  </BasicLayout>
</template>

<script>
import SearchForm from '@/components/business/SearchForm';
import ECharts from '@/components/business/ECharts';
import ChartBusinessLogic from '@/layout/mixin/ChartBusinessLogic';

export default {
  name: 'KAliveOwnBrandTrendEdition',
  components: {
    SearchForm,
    ECharts
  },
  mixins: [ChartBusinessLogic],
  data() {
    return {
      chartData: [
        { name: '销售收入' },
        { name: '客单价' },
        { name: '客单数' },
        { name: '前台毛利' },
        { name: '销售毛利' },
        { name: '前台毛利率' },
        { name: '销售毛利率' },
        { name: '库存金额' },
        { name: '其他图表' }
      ],
      apiType: 'brand'
    };
  }
};
</script>
